package com.siyoumi.app.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.siyoumi.app.entity.base.ShFundBase;
import com.siyoumi.app.modules.sh.vo.ShFundData;
import com.siyoumi.util.XJson;
import com.siyoumi.util.XStr;
import lombok.Data;
import lombok.experimental.Accessors;


@Data
@Accessors(chain = true)
@TableName(value = "t_sh_fund", schema = "wx_app_x")
public class ShFund
        extends ShFundBase {
    public ShFundData fundData() {
        if (XStr.isNullOrEmpty(getFund_data())) {
            return new ShFundData();
        }

        return XJson.parseObject(getFund_data(), ShFundData.class);
    }

}
